package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第五组
 * @since 2022-08-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("e_emp_info")
@ApiModel(value = "EmpInfo对象", description = "")
public class EmpInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("管理员id")
    private String id;

    @ApiModelProperty("管理员名字")
    private String ename;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("入职时间")
    private LocalDateTime gmtCreate;


    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime gmtModified;

    @ApiModelProperty("电话")
    private String telephone;

    @ApiModelProperty("角色")
    private String rid;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("员工状态 0在职 1离职 2冻结")
    private Integer state;

    @ApiModelProperty("管理员密码")
    private String password;

    @ApiModelProperty("加盐")
    private String salt;

    @ApiModelProperty("管理的地区id")
    private String areaId;

    @ApiModelProperty("操作人")
    private String updatemanid;

    @TableLogic  //逻辑列
    @ApiModelProperty("逻辑删除")
    private int isDeleted;


    @TableField(exist = false)
    private Role role;

}
